	//calculate the path
if (  aStar( startNode, endNode ) == true  )
{
	buildPath();
}



	//hilight the displayed path
for ( i = 0;  i < navPath.length;  i++ )
{
	nam = "node"+navPath[i];	// construct node name
	node = _root[nam];		// point to that node
	node.gotoAndStop(4);	// each node's 4th animation frame, has its "path" image
}		//end for i




trace("end program");
stop();